#-------------------------------------------------------------------------------
# Name:        course view
# Description:
#              "Course List" window title
#              Teacher button list (Home, Search, current window, Proctor Mode, Switch to Student List, Test Info)
#              two courses as frames:
#                  Course name label
#                  Test/Number of Questions/Percent Completed/Average Mark table with scrollbar
#              View Course button -> Teacher? Course View
#              View Student List button -> Teacher Course Student List
#              move up button
#              move down button
#              add new course button
#-------------------------------------------------------------------------------
#!/usr/bin/env python

def create():
    screenmanager.root.title("Course View")
    courseViewFrame = tk.Frame(screenmanager.root)

    course1Label = tk.Label(courseViewFrame, text="Course 1").pack()
    course1View = tk.Button(
            courseViewFrame,
            text="View Course",
            command=screenmanager.switch_to_teacher_test_view).pack()
    viewStudentList1 = tk.Button(
            courseViewFrame,
            text="View Student List",
            command=screenmanager.switch_to_teacher_test_view).pack()
    moveUp1 = tk.Button(
            courseViewFrame,
            text="Move Up",
            command=screenmanager.switch_to_teacher_test_view).pack()
    moveDown1 = tk.Button(
            courseViewFrame,
            text="Move Down",
            command=screenmanager.switch_to_teacher_test_view).pack()

    course2Label = tk.Label(courseViewFrame, text="Course 2").pack()

    course2View = tk.Button(
            courseViewFrame,
            text="View Course",
            command=screenmanager.switch_to_teacher_test_view).pack()
    viewStudentList2 = tk.Button(
            courseViewFrame,
            text="View Student List",
            command=screenmanager.switch_to_teacher_test_view).pack()
    moveUp2 = tk.Button(
            courseViewFrame,
            text="Move Up",
            command=screenmanager.switch_to_teacher_test_view).pack()
    moveDown2 = tk.Button(
            courseViewFrame,
            text="Move Down",
            command=screenmanager.switch_to_teacher_test_view).pack()

    courseViewFrame.pack()